package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_test_report_body table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_test_report_body"
 */

public abstract class BaseTbTestReportBody  implements Serializable {

	public static String REF = "TbTestReportBody";
	public static String PROP_FREQUENCY = "Frequency";
	public static String PROP_R11 = "R11";
	public static String PROP_R52 = "R52";
	public static String PROP_HEAD_ID = "HeadId";
	public static String PROP_USER_ID = "UserId";
	public static String PROP_R41 = "R41";
	public static String PROP_R51 = "R51";
	public static String PROP_R12 = "R12";
	public static String PROP_ITEM_ID = "ItemId";
	public static String PROP_R21 = "R21";
	public static String PROP_R32 = "R32";
	public static String PROP_METHOD_NAME = "MethodName";
	public static String PROP_YEAR = "Year";
	public static String PROP_R22 = "R22";
	public static String PROP_REAGENT_NAME = "ReagentName";
	public static String PROP_INSTRUMENT_NAME = "InstrumentName";
	public static String PROP_R31 = "R31";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_ID = "Id";
	public static String PROP_CALIBRATOR_NAME = "CalibratorName";
	public static String PROP_R42 = "R42";


	// constructors
	public BaseTbTestReportBody () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbTestReportBody (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer userId;
	private java.lang.String year;
	private java.lang.Integer frequency;
	private java.lang.Integer itemId;
	private java.lang.Integer headId;
	private java.math.BigDecimal r11;
	private java.lang.String r12;
	private java.math.BigDecimal r21;
	private java.lang.String r22;
	private java.math.BigDecimal r31;
	private java.lang.String r32;
	private java.math.BigDecimal r41;
	private java.lang.String r42;
	private java.math.BigDecimal r51;
	private java.lang.String r52;
	private java.lang.String methodName;
	private java.lang.String instrumentName;
	private java.lang.String reagentName;
	private java.lang.String calibratorName;
	private java.lang.String sub1;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: user_id
	 */
	public java.lang.Integer getUserId () {
		return userId;
	}

	/**
	 * Set the value related to the column: user_id
	 * @param userId the user_id value
	 */
	public void setUserId (java.lang.Integer userId) {
		this.userId = userId;
	}



	/**
	 * Return the value associated with the column: year
	 */
	public java.lang.String getYear () {
		return year;
	}

	/**
	 * Set the value related to the column: year
	 * @param year the year value
	 */
	public void setYear (java.lang.String year) {
		this.year = year;
	}



	/**
	 * Return the value associated with the column: frequency
	 */
	public java.lang.Integer getFrequency () {
		return frequency;
	}

	/**
	 * Set the value related to the column: frequency
	 * @param frequency the frequency value
	 */
	public void setFrequency (java.lang.Integer frequency) {
		this.frequency = frequency;
	}



	/**
	 * Return the value associated with the column: item_id
	 */
	public java.lang.Integer getItemId () {
		return itemId;
	}

	/**
	 * Set the value related to the column: item_id
	 * @param itemId the item_id value
	 */
	public void setItemId (java.lang.Integer itemId) {
		this.itemId = itemId;
	}



	/**
	 * Return the value associated with the column: head_id
	 */
	public java.lang.Integer getHeadId () {
		return headId;
	}

	/**
	 * Set the value related to the column: head_id
	 * @param headId the head_id value
	 */
	public void setHeadId (java.lang.Integer headId) {
		this.headId = headId;
	}



	/**
	 * Return the value associated with the column: r1-1
	 */
	public java.math.BigDecimal getR11 () {
		return r11;
	}

	/**
	 * Set the value related to the column: r1-1
	 * @param r11 the r1-1 value
	 */
	public void setR11 (java.math.BigDecimal r11) {
		this.r11 = r11;
	}



	/**
	 * Return the value associated with the column: r1-2
	 */
	public java.lang.String getR12 () {
		return r12;
	}

	/**
	 * Set the value related to the column: r1-2
	 * @param r12 the r1-2 value
	 */
	public void setR12 (java.lang.String r12) {
		this.r12 = r12;
	}



	/**
	 * Return the value associated with the column: r2-1
	 */
	public java.math.BigDecimal getR21 () {
		return r21;
	}

	/**
	 * Set the value related to the column: r2-1
	 * @param r21 the r2-1 value
	 */
	public void setR21 (java.math.BigDecimal r21) {
		this.r21 = r21;
	}



	/**
	 * Return the value associated with the column: r2-2
	 */
	public java.lang.String getR22 () {
		return r22;
	}

	/**
	 * Set the value related to the column: r2-2
	 * @param r22 the r2-2 value
	 */
	public void setR22 (java.lang.String r22) {
		this.r22 = r22;
	}



	/**
	 * Return the value associated with the column: r3-1
	 */
	public java.math.BigDecimal getR31 () {
		return r31;
	}

	/**
	 * Set the value related to the column: r3-1
	 * @param r31 the r3-1 value
	 */
	public void setR31 (java.math.BigDecimal r31) {
		this.r31 = r31;
	}



	/**
	 * Return the value associated with the column: r3-2
	 */
	public java.lang.String getR32 () {
		return r32;
	}

	/**
	 * Set the value related to the column: r3-2
	 * @param r32 the r3-2 value
	 */
	public void setR32 (java.lang.String r32) {
		this.r32 = r32;
	}



	/**
	 * Return the value associated with the column: r4-1
	 */
	public java.math.BigDecimal getR41 () {
		return r41;
	}

	/**
	 * Set the value related to the column: r4-1
	 * @param r41 the r4-1 value
	 */
	public void setR41 (java.math.BigDecimal r41) {
		this.r41 = r41;
	}



	/**
	 * Return the value associated with the column: r4-2
	 */
	public java.lang.String getR42 () {
		return r42;
	}

	/**
	 * Set the value related to the column: r4-2
	 * @param r42 the r4-2 value
	 */
	public void setR42 (java.lang.String r42) {
		this.r42 = r42;
	}



	/**
	 * Return the value associated with the column: r5-1
	 */
	public java.math.BigDecimal getR51 () {
		return r51;
	}

	/**
	 * Set the value related to the column: r5-1
	 * @param r51 the r5-1 value
	 */
	public void setR51 (java.math.BigDecimal r51) {
		this.r51 = r51;
	}



	/**
	 * Return the value associated with the column: r5-2
	 */
	public java.lang.String getR52 () {
		return r52;
	}

	/**
	 * Set the value related to the column: r5-2
	 * @param r52 the r5-2 value
	 */
	public void setR52 (java.lang.String r52) {
		this.r52 = r52;
	}



	/**
	 * Return the value associated with the column: method_name
	 */
	public java.lang.String getMethodName () {
		return methodName;
	}

	/**
	 * Set the value related to the column: method_name
	 * @param methodName the method_name value
	 */
	public void setMethodName (java.lang.String methodName) {
		this.methodName = methodName;
	}



	/**
	 * Return the value associated with the column: instrument_name
	 */
	public java.lang.String getInstrumentName () {
		return instrumentName;
	}

	/**
	 * Set the value related to the column: instrument_name
	 * @param instrumentName the instrument_name value
	 */
	public void setInstrumentName (java.lang.String instrumentName) {
		this.instrumentName = instrumentName;
	}



	/**
	 * Return the value associated with the column: reagent_name
	 */
	public java.lang.String getReagentName () {
		return reagentName;
	}

	/**
	 * Set the value related to the column: reagent_name
	 * @param reagentName the reagent_name value
	 */
	public void setReagentName (java.lang.String reagentName) {
		this.reagentName = reagentName;
	}



	/**
	 * Return the value associated with the column: calibrator_name
	 */
	public java.lang.String getCalibratorName () {
		return calibratorName;
	}

	/**
	 * Set the value related to the column: calibrator_name
	 * @param calibratorName the calibrator_name value
	 */
	public void setCalibratorName (java.lang.String calibratorName) {
		this.calibratorName = calibratorName;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.String getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.String sub1) {
		this.sub1 = sub1;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbTestReportBody)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbTestReportBody tbTestReportBody = (com.xjzp.business.db.hibernate.po.TbTestReportBody) obj;
			if (null == this.getId() || null == tbTestReportBody.getId()) return false;
			else return (this.getId().equals(tbTestReportBody.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}